package com.rc.eureka;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableEurekaServer
//注册服务到eureka上
public class RcEurekaApplication{
    private static Logger logger = LogManager.getLogger(RcEurekaApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(RcEurekaApplication.class, args);
        logger.info("Eureka注册中心启动完毕 .......");
        //System.out.println("Eureka注册中心启动完毕 .......");
    }
}
